"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.拳师 = void 0;
const Big_1 = require("../core/Big");
const Point_1 = require("../core/Point");
const GameUtils_1 = __importDefault(require("../GameUtils"));
class 拳师 extends Big_1.Big {
    constructor() {
        super(...arguments);
        this.markPoint = null; //怒威神拳攻击成功后给敌方大子father的标记
    }
    addMark(big) {
        this.markPoint = big.point;
        this.gameMgr.sendBroadcast(GameUtils_1.default.getObj("update_拳师_mark", { "start": this.point.id, "end": this.markPoint.id }, true, false), false);
    }
    removeMark() {
        this.markPoint = null;
        this.gameMgr.sendBroadcast(GameUtils_1.default.getObj("remove_拳师_mark", { "start": this.point.id }, true, false), false);
    }
    terrainAdapt() {
        switch (this.point.terrain) {
            case Point_1.Terrain.SHAN:
            case Point_1.Terrain.SHUI:
                this.die(this.player);
        }
    }
}
exports.拳师 = 拳师;
